package com.tianshu.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.tianshu.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 申请件流程轨迹表
 * </p>
 *
 * @author liaojie
 * @since 2021-11-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_apply_task")
public class TApplyTask extends BaseEntity {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 机构号
     */
    private String bankCode;

    /**
     * 版本号
     */
    private String version;

    /**
     * 创建人
     */
    private String createUserId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    private String updateUserId;

    private LocalDateTime updateTime;

    private Integer procId;

    /**
     * 进件条码
     */
    private String applyNo;

    /**
     * 对应task_id
     */
    private String taskId;

    /**
     * 对应阶段代码--codetable
     */
    private String stageCode;

    /**
     * 处理人
     */
    private String userId;

    /**
     * 处理岗
     */
    private String positionId;

    /**
     * 任务开始时间
     */
    private LocalDateTime beginTime;

    /**
     * 任务关闭时间
     */
    private LocalDateTime closedTime;

    /**
     * 任务状态
     */
    private String status;

    /**
     * 结果：通过或者拒绝
     */
    private Integer result;

    /**
     * 备注
     */
    private String description;

    /**
     * 结果代码
     */
    private String resultCode;

    /**
     * 实际处理人
     */
    private String realHandlerUserId;


    public static final String ID = "id";

    public static final String BANK_CODE = "bank_code";

    public static final String VERSION = "version";

    public static final String CREATE_USER_ID = "create_user_id";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER_ID = "update_user_id";

    public static final String UPDATE_TIME = "update_time";

    public static final String PROC_ID = "proc_id";

    public static final String APPLY_NO = "apply_no";

    public static final String TASK_ID = "task_id";

    public static final String STAGE_CODE = "stage_code";

    public static final String USER_ID = "user_id";

    public static final String POSITION_ID = "position_id";

    public static final String BEGIN_TIME = "begin_time";

    public static final String CLOSED_TIME = "closed_time";

    public static final String STATUS = "status";

    public static final String RESULT = "result";

    public static final String DESCRIPTION = "description";

    public static final String RESULT_CODE = "result_code";

    public static final String REAL_HANDLER_USER_ID = "real_handler_user_id";

}
